﻿using Microsoft.Practices.Prism.MefExtensions.Modularity;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AddModule
{
    [ModuleExport(typeof(AddModule))] //1.모듈을 내보내는곳
    public class AddModule :IModule
    {
        [Import]//composition 추가
        public IRegionManager RegionManager;//2.프리즘에 있는 IRegionManager를 사용하는것이므로 import를 하는 것임.

        public void Initialize()
        {
            this.RegionManager.RegisterViewWithRegion("MainNavigationRegion", typeof(Views.AddModuleButton));//3.버튼 xmal을 region에 등록하는 부분
            
            //4.buttonxaml만들기
        }
    }
}
